{extend name="public/layout"/}
{block name="title"}{$info.title}_{:web_config('web_title')}{/block}
{block name="head"}{/block}
{block name="body"}
{include file="public/index_header" /}
<div class="page-content">
  <div class="inside-page news-content-page">
    {include file="public/left_menu"/}
    <div class="content-box" style="">
      {include file="public/index_location"/}
      <div class="article-box">
        <h2 class="article-title">
          {$info.title}
        </h2>
        <div class="article-info">
          <span>{$info.create_time}</span>
          {notempty name="$info.origin"}<span>作者：{$info.origin}</span>{/notempty}
        </div>
        <div class="article-content">
          {:html_out($info.content)}
        </div>
      </div>
    </div>
    <div class="right-box">
      <div class="class-name">
        <p class="font-size16 line-height24">资讯排行</p>
        <div class="height-5"></div>
        <p class="font-size18 line-height24 font-upp" style="color:#aaaeb7">hot news</p>
      </div>
      <ul class="hot-news-list">
        {volist name=":D('cms.Detail')->where('is_hot',1)->limit(10)->select()" id="vo"}
        <li>
          <a href="/home/cms/info.html?id={$vo.id}&class_id={$vo.class_id}" class="news-item">{$vo.title}</a>
        </li>
        {/volist}
      </ul>
      <div class="height-50"></div>
      <div class="class-name">
        <p class="font-size16 line-height24">联系我们</p>
        <div class="height-5"></div>
        <p class="font-size18 line-height24 font-upp" style="color:#aaaeb7">contact</p>
      </div>
      <div class="height-30"></div>
      <table>
        <tr>
          <td>
            <img src="{:web_config('web_qrcode')}" style="width:80px;" alt="">
          </td>
          <td>
            <div class="p-d line-height18">
              <div class="font-size16 font-main">{:web_config('web_title')}</div>
              <div class="height-5"></div>
              <div class="font-size14 font-main">地址：{:web_config('web_addr')}</div>
              <div class="height-5"></div>
              <div class="font-size14 font-main">联系人：{:web_config('web_contacts')}</div>
              <div class="height-5"></div>
              <div class="font-size14 font-main">手机：{:web_config('web_mobile')}</div>
              <div class="height-5"></div>
              <div class="font-size14 font-main">电话：{:web_config('web_phone')}</div>
              <div class="height-5"></div>
              <div class="font-size14 font-main">传真：{:web_config('web_fax')}</div>
            </div>
          </td>
        </tr>
      </table>
    </div>
  </div>
</div>
{include file="public/index_footer" /}
{/block}
{block name="script"}
<script>
  Do('swiper', function (){
    var index_page = new Swiper('#index-page', {
      direction: 'vertical',
      mousewheel: true,
      pagination: {
        el: '.index-swiper-pagination',
        clickable: true,
        renderBullet: function (index, className) {
          return '<span class="' + className + '">' +'0'+ (index + 1) + '</span>';
        },
      },
    });
    var case_big = new Swiper('#case-big', {
      slidesPerView: 'auto',
      loop: true,
      pagination: {
        el: '.case-swiper-pagination',
        clickable: true,
      },
      nested:true,
    });
  })
</script>
{/block}